<include file="Common/header" />
<!-- 顶部 -->     
<div id="middle">
    <include file="Common/menu" />
    <div class="right" id="mainFrame">
		<div class="right_cont">
			<ul class="breadcrumb">当前位置：
				<a href="javascript:void(0);">首页</a> <span class="divider">/</span>
				<a href="javascript:void(0);">费用管理</a> <span class="divider">/</span>
				抄表日志
			</ul>
			<div class="title_right"><strong>按条件查询</strong></div>
			<div style="width: 900px; margin:auto">
				<table class="table table-bordered">
					<tr>
						<td width="20%" align="right" bgcolor="#f1f1f1">设备类型：</td>
						<td>
							<select class="span1-3" id="typeid" name="typeid">
								<option value="1">水表</option>
								<option value="2">电表</option>
								<option value="3">气表</option>
							</select>
						</td>
						<td width="20%" align="right" bgcolor="#f1f1f1">抄表日期：</td>
						<td>
							<input type="text" name="times" id="times" class="laydate-icon span1-3" value="" />
						</td>
					</tr>
				</table>
				<table  class="margin-bottom-20 table  no-border" >
					<tr>
						<td class="text-center">
							<input type="button" value="查询" class="btn btn-info roleSubmit" style="width:80px;" />
							<input type="button" value="导出日志" class="btn btn-success" style="width:80px;" />
						</td>
					</tr>
				</table>
			</div>
			<div class="title_right"><strong>抄表日志</strong></div>
			<div id="ajaxDiv">
				<include file="Eqment/logs_list" />
			</div>
		</div>     
    </div>
</div>
<script>
	$(document).ready(function(){
		$(".roleSubmit").on('click', function(){
			var load = layer.load(2);
			$.get('logs.html', {typeid: $("#typeid").val(), times: $("#times").val(), ajax: 1}, function(data){
				layer.close(load);
				$("#ajaxDiv").html(data);
			});
		});

		$(".btn-success").on('click', function(){
			var url = 'exceltable.html?typeid='+ $("#typeid").val() + '&times='+ $("#times").val();

			window.location.href = url;
		});
	});
</script>
<script>
!function(){
	laydate.skin('molv');
	laydate({elem: '#times'});
}();
</script>
<include file="Common/footer" />
